package de.tudarmstadt.ukp.wikisniffer.userstudy.gui.intro;

import java.awt.BorderLayout;
import java.awt.Font;
import java.awt.Panel;
import java.awt.Rectangle;
import java.awt.TextArea;
import de.tudarmstadt.ukp.wikisniffer.userstudy.gui.AbstractInfoGuiWithoutButton;

public class TextGuiWithoutButton extends AbstractInfoGuiWithoutButton 
{
		
		private String contentText;
		
		public void setText(String text, Rectangle bounds)
		{
			contentText = text;
			this.bounds = bounds;
		}

		@Override
		protected Panel getContentPanel() 
		{
			
			this.setAlwaysOnTop(true);
			
			Panel content = new Panel();
			content.setLayout(new BorderLayout());

			//open questions
			TextArea tfWelcome = new TextArea(contentText, 10, 50,  TextArea.SCROLLBARS_NONE);
			tfWelcome.setEditable(false);
			tfWelcome.setFont(new Font("Arial", Font.PLAIN, 18));
			
			content.add(tfWelcome, BorderLayout.CENTER);
			
			return content;
		}
	
}
